<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%--
  User: NGorosh
  Date: 20.05.11
  Time: 14:50
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <link rel="stylesheet" href="<spring:theme code='styleSheet'/>" type="text/css"/>
  <link rel="stylesheet" href="<spring:url value='/static/common-styles.css'/> " type="text/css"/>
  <title><spring:message code="note.editing"/></title>
</head>
<body>
<jsp:include page="localeChange.jsp"/>
<h2><spring:message code="note.editing"/></h2>

<form:form commandName="note" action="save">
  <form:hidden path="id"/>
  <table>
    <tr>
      <td>
        <form:label path="name" for="name"><spring:message code="note.name"/></form:label>
      </td>
      <td>
        <form:input path="name" size="66"/>
        <form:errors path="name" cssClass="error"/>
      </td>
    </tr>
    <tr>
      <td>
        <form:label path="text"><spring:message code="note.text"/></form:label>
      </td>
      <td>
        <form:textarea rows="4" cols="50" id="text" path="text"/>
      </td>
    </tr>
  </table>
  <input type="submit" value="<spring:message code="save"/>"/>
  <input type="reset" value="<spring:message code="reset"/>"/>
</form:form>
</body>
</html>